package com.bootdo.market.service.impl;

import com.bootdo.market.dao.ProductArticleDao;
import com.bootdo.market.domain.ProductArticleDO;
import com.bootdo.market.service.ProductArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class ProductArticleServiceImpl implements ProductArticleService {
    @Autowired
    private ProductArticleDao productArticleDao;

    @Override
    public ProductArticleDO get(Integer id) {
        return productArticleDao.get(id);
    }

    @Override
    public List<ProductArticleDO> list(Map<String, Object> map) {
        return productArticleDao.list(map);
    }

    @Override
    public int count(Map<String, Object> map) {
        return productArticleDao.count(map);
    }

    @Override
    public int save(ProductArticleDO productArticle) {
        return productArticleDao.save(productArticle);
    }

    @Override
    public int update(ProductArticleDO productArticle) {
        return productArticleDao.update(productArticle);
    }

    @Override
    public int remove(Integer id) {
        return productArticleDao.remove(id);
    }

    @Override
    public int batchRemove(Integer[] ids) {
        return productArticleDao.batchRemove(ids);
    }

    @Override
    public ProductArticleDO findArticlesortById(Integer id) {
        return productArticleDao.findArticlesortById(id);
    }

    @Override
    public int saveProductArticleRelationship(ProductArticleDO productArticle) {
        return productArticleDao.saveProductArticleRelationship(productArticle);
    }

}
